<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>{$system_settings['title']} - 管理系统</title>
        <link href="{MOD_URL}/{$m}/css/{$p}.css" rel="stylesheet" type="text/css" />
        <style type="text/css">
            <!--
            body {
                background-color: #ffffff;
                padding: 0px;
                margin: 0px;
            }
            -->
        </style>
        <script  type="text/javascript">
            function correctPNG(){
                for(var i=0; i<document.images.length; i++){
                    var img = document.images[i]
                    var imgName = img.src.toUpperCase()
                    if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
                        var imgID = (img.id) ? "id='" + img.id + "' " : ""
                        var imgClass = (img.className) ? "class='" + img.className + "' " : ""
                        var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
                        var imgStyle = "display:inline-block;" + img.style.cssText
                        if (img.align == "left") imgStyle = "float:left;" + imgStyle
                        if (img.align == "right") imgStyle = "float:right;" + imgStyle
                        if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
                        var strNewHTML = "<span " + imgID + imgClass + imgTitle
                            + " style=\"" + "width:" + img.width + "px; height:" + img.heigh  + "px;  + imgStyle + ";
                            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
                        img.outerHTML = strNewHTML
                        i = i-1;
                    }
                }
            }
            if (/MSIE 6.0/ig.test(navigator.appVersion)) window.attachEvent("onload", correctPNG);

            //for submit
            function submit_form(){
                document.getElementById('username').readOnly = true;
                document.getElementById('password').readOnly = true;
            }
        </script>
    </head>

    <body>
        <form name="form" action="{APP_URL}/index.php/admin/login/action/login" method="post">

            <div id="top-login" ><img src="{MOD_URL}/{$m}/images/{$p}/logo.png" /></div>
            <div id="name">{$system_settings['title']} - 管理系统</div>

            <table  border="0" cellspacing="0" cellpadding="0" id="login">
                <tr><td colspan="3" height="1"><!--{if $error_msg != ''}--><div class="error" align="center" id="error_div"><font color="#FF0033">$error_msg</font></div><!--{/if}--></td></tr>
                <tr>
                    <td width="190" rowspan="7"  class="pic"> </td>
                    <td height="30" colspan="2" valign="bottom"><label for="username">用户名：</label></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input style="width:160px; height:16px;" type="text" name="username" id="username" value="$_DCOOKIE['remember_me']" size="13" onkeyup="javascript:if(document.getElementById('error_div'))document.getElementById('error_div').innerHTML='';" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><label for="password">密　码：</label></td>
                </tr>
                <tr>
                    <td colspan="2"><input style="width:160px; height:16px;" type="password" name="password" id="password" size="15" onkeyup="javascript:if(document.getElementById('error_div'))document.getElementById('error_div').innerHTML='';" /></td>
                </tr>
                <tr>
                    <td colspan="2"><label for="keystring">验证码：</label></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <label><input type="text" name="keystring" id="keystring" size="14"/></label>
                        <img src="{APP_URL}/authimg.php" width="58" height="20" align="absmiddle" onclick="this.src=this.src.replace('/\?(.*)/', '')+'?'+Math.random()" title="点击更换验证码" />
                    </td>
                </tr>
                <tr>
                    <td width="102">
                        <input  type="submit" value="登 录" onClick="this.disabled=true;this.value='正在提交';document.form.submit();submit_form();"/>
                        <!-- <label><input type="checkbox" name="remember_me" checked="checked" />记住该用户名</label>-->
                    </td>
                    <td width="106" valign="bottom">
                        
                    </td>
                </tr>
                <tr><td colspan="3" height="20"></td></tr>
            </table>
        </form>
        <div id="foot"><!--<span>GRIRMS V2.4</span><a href="#">2004-2010grirms.com</a> <a href="#">隐私声明</a>--></div>
    </body>
</html>